<?php

Route::group(['middleware' => 'web', 'prefix' => 'wx', 'namespace' => 'Modules\Wx\Http\Controllers'], function()
{
    Route::get('/', 'WxController@index')->name('wx');
});

 
//we_config-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'wx','namespace'=>"Modules\Wx\Http\Controllers"], 
function () {
    Route::resource('we_config', 'WeConfigController')->middleware("permission:admin,resource");
});
 
//wx_menu-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'wx','namespace'=>"Modules\Wx\Http\\Controllers"],
function () {
    Route::resource('wx_menu', 'WxMenuController');
    //定义推送到微信路由
    Route::get('/wx_menu/push/{wx_menu}','WxMenuController@push');
});
//wx_base_reply-route
Route::group(['middleware' => ['web','auth:admin'],'prefix'=>'wx','namespace'=>"Modules\Wx\Http\\Controllers"],
    function () {
        Route::resource('wx_base_reply', 'WxBaseReplyController');
    });